<#assign title="FOF基金添加页面">
<#include "/admin/inc/top.html"/>
<div class="main-content" id="main-content">
    <header class="header navbar bg-white shadow">
        <div class="btn-group tool-button">
            <a class="btn btn-primary navbar-btn" href="${base!}/private/fof/fofInfo" data-pjax><i
                    class="fa fa-reply"></i> 返回</a>
        </div>
    </header>
    <section class="content">

        <div class="form-wrapper" style="min-height:500px;">
            <section class="panel panel-form">
                <form id="unitAddForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                      action="${base!}/private/fof/fofInfo/addDo" method="post">
                    <div class="row mb10">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label for="fullName" class="col-sm-2 control-label">FOF完整名称</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fullName" class="form-control" name="fullName"
                                    data-parsley-required="true"  placeholder="FOF完整名称">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="shortName" class="col-sm-2 control-label">FOF短名称</label>

                                <div class="col-sm-8">
                                    <input type="text" id="shortName" class="form-control" name="shortName"
                                      placeholder="FOF短名称">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="profitType" class="col-sm-2 control-label">fof收益类型</label>

                                <div class="col-sm-8">
                                    <input type="text" id="profitType" class="form-control" name="profitType"
                                     data-parsley-type="number" placeholder="fof收益类型">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="productType" class="col-sm-2 control-label">fof产品类型</label>

                                <div class="col-sm-8">
                                    <input type="text" id="productType" class="form-control" name="productType"
                                     data-parsley-type="number" placeholder="fof产品类型">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="userId" class="col-sm-2 control-label">FOF创建者ID</label>

                                <div class="col-sm-8">
                                    <input type="text" id="userId" class="form-control" name="userId"
                                     data-parsley-type="number" placeholder="FOF创建者ID">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="createDate" class="col-sm-2 control-label">创建日期</label>

                                <div class="col-sm-8">
                                    <input type="text" id="createDate" class="form-control" name="createDate"
                                      placeholder="创建日期">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="status" class="col-sm-2 control-label">FOF可见度
1-完全公开
2-公司内部可见
3-只有指定用户可见
4-私有，只有owner可见</label>

                                <div class="col-sm-8">
                                    <input type="text" id="status" class="form-control" name="status"
                                     data-parsley-type="number" placeholder="FOF可见度
1-完全公开
2-公司内部可见
3-只有指定用户可见
4-私有，只有owner可见">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                    </div>
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <div class="form-group text-center">
                            <label></label>

                            <div>
                                <button class="btn btn-primary btn-block btn-lg btn-parsley"
                                        data-loading-text="正在提交...">提 交
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </section>

        </div>
        <a class="exit-offscreen"></a>
    </section>
</div>
<script language="JavaScript">
    $(document).ready(function () {
        $('#unitAddForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 200) {
                    Toast.success(data.msg);
                    form.resetForm();
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>
<#include "/admin/inc/bottom.html"/>